package com.kpj.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
	
	private Button goRaeckTest;
	private Button zakkButton;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        goRaeckTest = (Button)findViewById(R.id.btn_main_go_raeck_test);
        zakkButton = (Button) findViewById(R.id.btn_main_go_zakk_test);
        goRaeckTest.setOnClickListener(this);
        zakkButton.setOnClickListener(this);
    }

	public void onClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.btn_main_go_raeck_test:
			intent = new Intent(getApplicationContext(), RaeckTestActivity.class);
			break;
			
		case R.id.btn_main_go_zakk_test:
			intent = new Intent(getApplicationContext(), ZakkMainActivity.class);
			break;

		default:
			break;
		}
		startActivity(intent);
	}
}